package com.heima.article.feign;

import com.heima.model.user.pojos.ApUserFan;
import com.heima.model.user.pojos.ApUserFollow;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("leadnews-user")
public interface UserFeign {

    //查询粉丝  用于行为数据回显
    @GetMapping("/api/v1/user_fan/getUserFan")
    public ApUserFan getUserFan(@RequestParam("authorUserID")Integer authorUserID, @RequestParam("loginUserID")Long loginUserID);

    //查询关注 用于行为数据回显
    @GetMapping("/api/v1/user_follow/getUserFollow")
    public ApUserFollow getUserFollow(@RequestParam("loginUserID")Integer loginUserID, @RequestParam("authorUserID")Integer authorUserID);

}
